﻿<Window x:Class="bind_n_find.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:props="clr-namespace:bind_n_find.Properties"
    xmlns:bnf="clr-namespace:bind_n_find"
    Title="Window1" Height="600" Width="800"
    Loaded="Window_Loaded" SizeChanged="Window_SizeChanged" WindowStartupLocation="CenterScreen">

    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="766*" />
            <ColumnDefinition Width="12*" />
        </Grid.ColumnDefinitions>
        <StackPanel Name="_stack_panel1"  >
        <bnf:find_ctrl  Margin="10,68,10,10"  x:Name="find_ctrl1"  Grid.ColumnSpan="2" Height="100" VerticalAlignment="Top">

        </bnf:find_ctrl>

        <ListView Name="_grid" Margin="10,68,10,10"  Grid.ColumnSpan="2"  ItemsSource="{Binding Path=Table}" Height="95" MouseDoubleClick="_grid_MouseDoubleClick">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="{x:Static props:Resources.Table_Name}" DisplayMemberBinding="{Binding Path=Name}"/>
                    <GridViewColumn Width="Auto" Header="{x:Static props:Resources.Table_Createdon}" DisplayMemberBinding="{Binding Path=EnteredOn}"/>
                    <GridViewColumn Width="Auto" Header="{x:Static props:Resources.Table_Keywords}" DisplayMemberBinding="{Binding Path=Keywords}"/>
                    <GridViewColumn Width="Auto" Header="{x:Static props:Resources.Table_Description}" DisplayMemberBinding="{Binding Path=Description}"/>
                </GridView>
            </ListView.View>
        </ListView>
            </StackPanel>
        <Menu Height="22" Margin="8,12,12,0" Name="menu1" VerticalAlignment="Top" Grid.ColumnSpan="2">
            <MenuItem AllowDrop="True" Header="{x:Static props:Resources.Menu_Database}">
                <MenuItem Name="Menu_NewDatabase" AllowDrop="False" Header="{x:Static props:Resources.Menu_New_Db}" Click="Menu_NewDatabase_Click" />
                <MenuItem Name="Menu_OpenDatabase" AllowDrop="False" Header="{x:Static props:Resources.Menu_Open_Db}" Click="Menu_OpenDatabase_Click" />
                <Separator/>
                <MenuItem Name="Menu_Preferences" AllowDrop="False" Header="{x:Static props:Resources.Menu_Preferences}" Click="Menu_Preferences_Click" />
                <Separator/>
                <MenuItem Name="Menu_Exit" AllowDrop="False" Header="{x:Static props:Resources.Menu_Exit}" Click="Menu_Exit_Click"/>
            </MenuItem>
            <MenuItem AllowDrop="True" Header="{x:Static props:Resources.Menu_Documents}">
                <MenuItem Name="Menu_Find" IsCheckable="True" AllowDrop="False" Checked="Menu_Find_Checked" Unchecked="Menu_Find_Unchecked"/>
                <Separator/>
                <MenuItem Name="Menu_NewDoc" AllowDrop="False" Click="Menu_NewDoc_Click" Header="{x:Static props:Resources.Menu_NewDoc}"/>
                <MenuItem Name="Menu_ViewDoc" AllowDrop="False" Click="Menu_ViewDoc_Click"  Header="{x:Static props:Resources.Menu_NewDoc}"/>


            </MenuItem>
        </Menu>
        <ToolBar Height="26" Margin="8,36,12,0" Name="toolBar1" VerticalAlignment="Top" Grid.ColumnSpan="2" >
            <Button Name="_new_doc_tool" Content="{x:Static props:Resources.NewDoc_Toolbar_label}" Click="Menu_NewDoc_Click"/>
            <Button Name="_view_doc_tool" Content="{x:Static props:Resources.ViewDoc_Toolbar_label}" Click="Menu_ViewDoc_Click"/>
            <Button Name="_edit_doc_tool" Content="{x:Static props:Resources.EditDoc_Toolbar_label}" Click="Menu_EditDoc_Click"/>

            <CheckBox Name="_find_tool" Content="{x:Static props:Resources.Find_Toolbar_label}" Checked="CheckBox_Checked" Unchecked="_find_tool_Unchecked"/>
            
        </ToolBar>
    </Grid>
</Window>
